﻿using System.Collections.Generic;
using Fee.Orders;
using Fee.Searchers;
using Fee.ViewModel;

namespace Fee.Stores
{
    public interface IConstructionTaskStore<T> where T : FeeDbContext
    {
        ConstructionTask GetByStation(int stationId);

        /// <summary>
        ///     以基站为主的查询
        /// </summary>
        /// <param name="pager"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<StationDetailViewModel> List(ConstructionTaskSearcher pager, out int total);

        IEnumerable<BudgetViewModel> BudgetSearches(StationBudgetSearch searcher, out int total);
      
        ConstructionTask Get(int id);
    }
}